﻿#pragma once

template<typename T>
constexpr void release(T*& resource) {
	if (resource) {
		resource->Release();
		resource = nullptr;
	}
}